import { Game } from "../../../Game";
import { KeyBoardManager } from "../../../../../com/gengine/keyBoard/KeyBoardManager";
import { LayerManager } from "../../../manager/LayerManager";
import { Global } from "../../../../../com/gengine/global/Global";
//class Lv70OpControl
    
    export  class Lv70OpControl
    {
        

        public static set enablePlayerOp(arg1: Boolean)
        {
            Game.scene.mouseChildren = arg1;
            Game.scene.mouseEnabled = arg1;
            if (arg1) 
            {
                KeyBoardManager.instance.cancelListener();
                KeyBoardManager.instance.addListener();
            }
            else 
            {
                KeyBoardManager.instance.cancelListener();
            }
            return;
        }

        public static set enableViews(arg1: Boolean)
        {
            LayerManager.uiLayer.visible = arg1;
            if (!Global.isDebugModle) 
            {
                LayerManager.windowLayer.visible = arg1;
            }
            LayerManager.topLayer.visible = arg1;
            LayerManager.popupLayer.visible = arg1;
            LayerManager.issmBtnLayer.visible = arg1;
            LayerManager.guideLayer.visible = arg1;
            LayerManager.dragLayer.visible = arg1;
            LayerManager.toolTipLayer.visible = arg1;
            LayerManager.msgTipLayer.visible = arg1;
            return;
        }
    }
